﻿using System;
using System.IO;
using AmiDraw.Lib.Factory;
using PropertyChanged;

namespace AmiDraw.Lib.Models
{
    [AddINotifyPropertyChangedInterface]
    public class DrawResult
    {
        /// <summary>
        /// 抽卡结果的Pack信息
        /// </summary>
        public AcPackInfo PackInfo { get; set; }


        /// <summary>
        /// 结果的来自等级信息
        /// </summary>
        public AcLevel LevelInfo { get; set; }

        /// <summary>
        /// 占比和
        /// </summary>
        public int SumRatio { get; set; }

        /// <summary>
        /// 结果的抽到的卡
        /// </summary>
        public AcCard CardInfo { get; set; }

        /// <summary>
        /// 获取这张卡的图片的真实的路径
        /// </summary>
        /// <returns></returns>
        public string LocalImagePath(ResultQueryMode mode)
            => PathFactory.GetResImagePath(PackInfo.Name, CardInfo.Name, mode);

    }
}